<template>
	<view>
		<view class="table-box">
			<scroll-view scroll-x="true" class="scroll-view">
				<view class="tr table-tt">
					<!-- <view class="td">时间</view>
					<view class="td">数据名称</view>
					<view class="td">执行内容</view>
					<view class="td">执行结果</view>
					<view class="td">执行人</view> -->
                     <view class="td">序号</view>
                    <view class="td">车名</view>
                    <view class="td">
                        <picker @change="bindPickerChange" :value="array.index" :range="array.list">
                            品名
                            <uni-icon type="arrowdown"></uni-icon>
                        </picker>
                    </view>
                    <view class="td ">数量</view>
                    <view class="td">检测人</view>
                    <view class="td">检验时间</view>
                    <view class="td ">登记人</view>
                    <view class="td">登记时间</view>
				</view>

				<view class="tr  table-box" v-for="(item, index) in table" :key="index">
                        <view class="td ">{{ index+1}}</view>
                        <view class="td ">{{ item.car_num }}</view>
                        <view class="td ">{{ item.goods_name }}</view>
                        <view class="td ">{{ item.number }}</view>
                        <view class="td ">{{ item.check_name }}</view>
                        <view class="td " >{{ item.check_time }}</view>
                        <view class="td ">{{ item.note_taker}}</view>
                        <view class="td ">{{ item.note_taker_time }}</view>
                    </view>
			</scroll-view>
		</view>
	</view>
</template>

<script>
export default {
	onLoad(option) {
		console.log(option);
	},
	data() {
		return {
			table: [
				{
					name: '一区温度',
					time: '07-11 09:22:11',
					user: '操作人员1',
					con: '执行了操作',
					res: '成功'
				},
				{
					name: '温度',
					time: '07-12 09:22:11',
					user: '操作人员2',
					con: '执行了操作',
					res: '成功'
				},
				{
					name: '一区',
					time: '09-11 09:22:11',
					user: '操作人员3',
					con: '执行了操作',
					res: '失败'
				}
			]
		};
	},
	methods: {}
};
</script>

<style lang="scss">
.scroll-view {
	white-space: nowrap;
	width: 100%;
}
.table-box {
	.tt{
		background: $color-theme-blue;
	}
	.tr {
		box-sizing: border-box;
		padding: 0;
	}
	.td {
		background: inherit;
		display: inline-block;
		width: 30%;
		padding: 25rpx 0;
		box-sizing: border-box;
	}
}
</style>
